#ifndef TARGA_H_INCLUDED
#define TARGA_H_INCLUDED

#include <fstream>

using std::ifstream;

#include "texture.h"

namespace sheeplib {

    namespace texture {

        class Targa : public Texture {
            private:
                static const unsigned char uTGAcompare[12];
                static const unsigned char cTGAcompare[12];

                unsigned char m_Header[12];
                bool LoadUncompressedTGA(const string& filename);
                bool LoadCompressedTGA(const string& filename);

                bool ReadCommonHeader(ifstream& fileIn);

            public:
                Targa();
                ~Targa();

                bool LoadTextureFile(const string& filename);
        };
    }
}

#endif // TARGA_H_INCLUDED
